/*
 * DecodeFrame.h
 *
 *  Created on: 2012-3-25
 *      Author: zgx
 */

#ifndef DECODEFRAME_H_
#define DECODEFRAME_H_

//#include "head.h"

int InitDecoder(int width, int height);
int UninitDecoder();
int DecoderNal(uint8_t* in, int nalLen, uint8_t* out);

/*
 * test
 */
static void demo() {
    InitDecoder(352,288);
/*
    for(every frame){
        if(find first I Frame){
            do decode;
            DecoderNal(inFrame,inFrameLen,outPictrueByte);
        }else{
            continue;
        }
    }
*/
    UninitDecoder();
}

#endif /* DECODEFRAME_H_ */
